import {createRouter, createWebHashHistory} from 'vue-router'


const routes = [
    {
        name: "Home",
        path: "/",
        component: () => import('../views/Home'),
        children: [
            { path: '/:pathMatch(.*)*', redirect: '/'}
        ]
    },
    {
        name: "Login",
        path: "/login",
        component: () => import('../views/Login'),
    },
    {path: '/:pathMatch(.*)*', redirect: '/'},
]


const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
